package com.ruoyi.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.api.domain.SysDictType;
import com.ruoyi.system.api.domain.SysRole;

public interface RoleService extends IService<SysRole> {
    IPage<SysRole> selectRoleList(IPage<SysRole> Page,SysRole role);

    void checkRoleDataScope(Long[] roleIds);

    boolean checkRoleNameUnique(SysRole role);

    boolean checkRoleKeyUnique(SysRole role);

    SysRole selectRoleById(Long roleId);

    void checkRoleAllowed(SysRole role);

    int updateRole(SysRole role);
}
